//2009/08/09 21:13:42
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <algorithm>

using namespace std;

class ProgressBar
{
public:
    string showProgress(vector <int> tT, int tC)
    {
		int total = 0;
		int comp = 0;
		for(int i=0; i<tT.size(); i++) total += tT[i];
		for(int i=0; i<tC; i++) comp += tT[i];
		int num = 20 * comp / total;
		string s1(num, '#');
		string s2(20 - num, '.');
		return s1+s2;
    }
};
